package com.example.wwj.mapper;

import com.example.wwj.pojo.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    int insert(User user);

    int update(User user);

    int delete(Integer id);

    User findById(int id);

    User findByUsername(String username);

    List<User> findAll();

    User login(User user);
}
